package top.hzy520.attend.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.hzy520.attend.dto.AttendDto;
import top.hzy520.attend.entity.AttendItem;

import java.util.List;

@Mapper
public interface AttendItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AttendItem record);

    int insertSelective(AttendItem record);

    AttendItem selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AttendItem record);

    int updateByPrimaryKey(AttendItem record);

    List<AttendItem> selectAttendList(@Param("userId") Long userId, @Param("offset") int offset, @Param("limit") int limit);

    int selectAttendAcount(Long userId);

    List<AttendItem> selectBySearch(AttendDto attendDto);

    int selectAttendAcountBySearch(AttendDto attendDto);
}